home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / Sample Editors⁄Viewers / Cappuccino / Cappuccino Demo Script < prev    next >
Encoding:
Text File  |  1995-12-11  |  394 b   |  13 lines  |  [TEXT/ToyS]

  1. -- This script demonstrates the scripting capability in Cappuccino.
  2. -- Get and set contents are supported.
  3. -- Note that "Cappuccino 1.0" (below) should be set to the name 
  4. -- of the Cappuccino document which you are scripting.
  5.  
  6. tell application "Cappuccino 1.0"
  7.     repeat with i from 1 to 10
  8.         set contents to (i as string)
  9.     end repeat
  10.     set contents to "Pretty cool, huh?"
  11.     get contents
  12. end tell
  13.